package com.wjv.example.spbt.shiro.model;

import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * <p>Title: 自定义用户角色信息</p>
 *
 * @author wjv
 * @date 2021/7/5 12:01
 */
@Data
@Builder
@RequiredArgsConstructor(staticName = "of")
@AllArgsConstructor
@NoArgsConstructor
public class Role implements Serializable {

    @NonNull
    private Integer id;

    @NonNull
    private String role;

    @NonNull
    private String roleDesc;

    /**
     * 角色 - 权限
     */
    private List<Permission> permissions;
}
